package sise.world.agent;

import java.awt.Point;
import java.util.HashMap;
import java.util.Map;

import sise.world.agent.AbstractAgent.AgentType;
import sise.world.map.Field;

public class InfoToAgent {
	private Map<Point, AgentType> observedMap = new HashMap<>(32);
	private Map<Point, Field> fieldMap = new HashMap<>(32);

	/*public InfoToAgent() {
		observedMap = new HashMap<>(32);
		fieldMap = new HashMap<>(32);
	}*/

	public HashMap<Point, AgentType> returnObserved() {
		return (HashMap<Point, AgentType>) observedMap;
	}

	public HashMap<Point, Field> returnFields() {
		return (HashMap<Point, Field>) fieldMap;
	}

	public void addObserved(Point point, AgentType agent) {
		observedMap.put(point, agent);
	}

	public void addField(Point point, Field field) {
		fieldMap.put(point, field);
	}

	public void clearObserved() {
		observedMap.clear();
	}
}